/* eslint-disable @typescript-eslint/naming-convention */
import React, { useState, useEffect} from 'react';


function App() {
  const [count, setCount] = useState(0);

  useEffect(() => {
    console.log('init');
  }, []);

  const buttonClick = () => {
    setCount(count + 1);
    console.log('buttonClick');
  };

  return (
    <div>
      <h2 style={{ color: '#ff0000' }}>Webview-react</h2>
      <p>count:{count}</p>
      <button onClick={buttonClick}>测试按钮</button>
    </div>
  );
}
export default App;